package libtool65.o65;

import java.io.IOException;
import java.io.InputStream;
import java.io.PrintStream;

public class SegmentDef {
	private int base;
	private int size;
	
	public int getBase() {
		return base;
	}
	public void setBase(int base) {
		this.base = base;
	}
	public int getSize() {
		return size;
	}
	public void setSize(int size) {
		this.size = size;
	}
	public void read(InputStream file, Mode mode) throws IOException {
		base = mode.readSize(file);
		size = mode.readSize(file);
	}
	public void dumpInfo(String name, PrintStream out) {
		out.println("Segment "+name+" base="+base+" size="+size);
	}
}
